let Koa =require('koa');

let bodyParser =require('koa-bodyparser');
let server =require('koa-static');
let template =require('./templating')
let controller =require('./controllers');

let app =new Koa();
app.use(bodyParser());
app.use(server (__dirname + '/static'));

app.use(template);
app.use(controller());


let port =5000;
app.listen(port,()=>{
    console.log(`http://localhost:${port}`);
})